package Lee_code;

public class Lee_28 {
    static class Solution {
        public int strStr(String haystack, String needle) {
            int index = haystack.indexOf(needle);
            return index;
        }
    }
    public static void main(String[] args) {
        String haystack = "sadbutsad";
        String needle = "sad";
        Solution so = new Solution();
        System.out.print(so.strStr(haystack, needle));
    }
}

